package cn.pro;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

import java.io.IOException;
import java.util.Objects;

public class LoginView {
      static Stage loginStage;
      public static void start(Stage primaryStage) throws IOException {
            loginStage=primaryStage;
            Parent root= FXMLLoader.load(Objects.requireNonNull(LoginView.class.getResource("login.fxml")));
            primaryStage.setResizable(false);
            primaryStage.setTitle("登录界面");
            primaryStage.setScene(new Scene(root,600,400));
            primaryStage.show();
      }
}
